//
//  VBCharacter.m
//  VicBattle
//
//  Created by Nguyen Nguyen on 5/5/12.
//  Copyright (c) 2012 __MyCompanyName__. All rights reserved.
//

#import "VBCharacter.h"
#import "VBBattleLayer.h"

@implementation VBCharacter

@synthesize atk, def, hp, mp, cost;
@synthesize isHero;
@synthesize state;
@synthesize cell;
@synthesize body;
@synthesize hpBar;
@synthesize life;

-(id) init
{
    if((self=[super init]))
    {
        battle = nil;
    }
    return self;
}

-(id) initWithWorld:(VBBattleLayer *) world
{
    return self;
}

-(void) setCellWithRow:(int) row andCol:(int) col
{
    cell.row = row;
    cell.col = col;
    [battle reorderChild:body z:row+battle.n-col];
}

-(int) getEnemy
{
    return -1;
}

-(void) attack
{
    
}

-(void) skill
{
}

@end
